package com.jinzhi.jinzhidata.dataobject;

import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Entity
@EntityListeners(AuditingEntityListener.class)
@ToString
public class User {

    @Id
    private String userId;

    private String userName;

    private String userWechatName;

    private String userWechatId;

    private String userAvatar;

    private String userPhone;

    private String userPassword;

    private String userGender;

    private String userEmail;

    private String userCompany;

    private String userAddress;

    private String userIntroduction;

    private String userPosition;

    private String userIndustry;

    private String userRole;

    /**
     * 用户余额
     */
    private BigDecimal userBalance;

    @CreatedDate
    private Date createTime;

    @LastModifiedDate
    private Date updateTime;
}

